package com.ygqh.baby.service;
import java.util.Date;
import java.util.List;

import com.ygqh.baby.ao.Message;
import  com.ygqh.baby.ao.QueryInfo;
import  com.ygqh.baby.ao.ResultSet;
import  com.ygqh.baby.po.YgActivityGiveaway;

public interface YgActivityGiveawayService {

    
    List<YgActivityGiveaway> find();
	int findCount();
	YgActivityGiveaway findById(Long id);
	int deleteSoft(Long[] ids);
	int deleteSoft(Long id);
	int save(YgActivityGiveaway ygActivityGiveaway );
	int update(YgActivityGiveaway ygActivityGiveaway);
	int saveOrUpdate(YgActivityGiveaway ygActivityGiveaway);
	ResultSet<YgActivityGiveaway> search(QueryInfo queryInfo,String q, Date startDate, Date endDate, String pStatus);
	
	/**
	 * 保存方法
	 */
	 Message saveGiveaway(YgActivityGiveaway activityGiveaway,String handler);
	 
	 Message updateGiveaway(YgActivityGiveaway activityGiveaway,String handler); 
	 
    
}
